<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录 - 电商平台</title>
    <link rel="stylesheet" href="css/login.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
</head>
<body>
    <div class="login-container">
        <div class="login-box">
            <h2>欢迎回来</h2>
            <div class="message-box error" style="display: none;">
                <i class="fas fa-exclamation-circle"></i>
                <span></span>
            </div>
            <form id="loginForm">
                <div class="input-group">
                    <input type="email" id="email" required>
                    <label for="email">电子邮箱</label>
                    <small class="error-text"></small>
                </div>
                <div class="input-group">
                    <input type="password" id="password" required>
                    <label for="password">密码</label>
                    <small class="error-text"></small>
                    <button type="button" class="toggle-password">
                        <i class="far fa-eye"></i>
                    </button>
                </div>
                <div class="remember-forgot">
                    <label>
                        <input type="checkbox" id="rememberMe"> 记住我
                    </label>
                    <a href="#" id="forgotPassword">忘记密码？</a>
                </div>
                <button type="submit" class="login-btn">
                    <span>登录</span>
                    <div class="spinner" style="display: none;"></div>
                </button>
                <div class="register-link">
                    还没有账号？<a href="/register.html">立即注册</a>
                </div>
            </form>
        </div>
    </div>
    <script src="js/login.js"></script>
</body>
</html>
